import { defHttp } from "/@/utils/http/axios";

enum Api {
  list = '/auditCenter/caishuiTaskSettleList/list',
  statusOne = '/auditCenter/caishuiTaskSettleList/statusOne',
}

/**
 * 列表接口
 * @param params
 */
export const list = (params) => defHttp.get({ url: Api.list, params });

/**
 * 审核
 * @param params
 * @param handleSuccess
 */
export const statusOne = (params,handleSuccess) => {
  return defHttp.get({url: Api.statusOne, params}, {joinParamsToUrl: true}).then(() => {
    handleSuccess();
  });
}
